﻿#include "FormAccount.h"

#include <QtGui>

FormAccount::FormAccount(QWidget * parent, Qt::WFlags f): SubFrame(parent, f)
{
	ui.setupUi(this);

	QTreeWidget* treeWidget = ui.treeAccount;
	QStringList headerLabels;
    headerLabels << tr("No") << tr("Time") << tr("PS");
	treeWidget->setHeaderLabels(headerLabels);

	//treeWidget->header()->setSortIndicator(0, Qt::AscendingOrder);
	treeWidget->header()->setSortIndicatorShown(true);
	treeWidget->header()->setClickable(true);

	//////////////////////////////////
	QTreeWidgetItem *it = new QTreeWidgetItem(treeWidget);
		
	it->setText(0, "name");
	it->setText(1, "mobile");
	it->setText(2, "email");
	it->setIcon(0,QIcon("./images/contact.png"));	
	it->setData(0, Qt::UserRole, "index");

	//////////////////////////////////
}

FormAccount::~FormAccount(void)
{

}
